package com.china08.yxyapi.repository.db;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.china08.yxyapi.entity.db.lessons.YxyLessonsVideo;

public interface YxyLessonsVideoRepository extends JpaRepository<YxyLessonsVideo, String> {

    YxyLessonsVideo findById(String id);

    // 文件上传
    List<YxyLessonsVideo> findByMd5OrderByCreatedDateAsc(String md5);

    YxyLessonsVideo findByMd5(String md5);
}
